package borge.web.teamspirit.client.page.team.widgets;

import java.util.List;

import borge.web.teamspirit.client.data.Match;
import borge.web.teamspirit.client.interfaces.WidgetEventHandler;
import borge.web.teamspirit.client.page.shared.widgets.BaseWidget;

import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.VerticalPanel;

public class NextGameWidget extends BaseWidget {

	private List<Match> iMatches;
	
	public NextGameWidget(WidgetEventHandler aEventHandler, List<Match> aMatches){
		super(aEventHandler);
		iMatches = aMatches;
		
		
		// how do we best display next game?
		// date, time, serie, serie type?, opponents
		// must also provide links to match/serie/attendance
		FlexTable table = new FlexTable();
		VerticalPanel panel = new VerticalPanel();

		int row = 0, column = 0;
		
		table.setText(row++, column, "next game");
		table.setText(row++, column, "Indoor serie 4a, HT09");
		table.setText(row++, column, "2009-12-10 20.00");
		table.setText(row++, column, "The tigers");
		
		panel.add(table);

		initWidget(panel);
	}
	
	
}
